<?php
class Setting extends AppModel{
	var $name = 'Setting';
	var $useTable = 'settings';
	var $primaryKey = 'id';

	function getVipDiscount() {
		return $this->find('first', array(
			'conditions' => array(
				'param' => 'DISCOUNT_FOR_VIP',
                        ),
			'fields' => array('value')
		));
	}
}
?>
